import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
import { HydratedDocument } from 'mongoose'

export type GroupDocument = HydratedDocument<Group>

@Schema()
export class Group {
  @Prop()
  public id: string
  
  @Prop()
  public pid: string

  @Prop()
  public name: string
}

export const GroupSchema = SchemaFactory.createForClass(Group)
